<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var obj = {}
        console.log(typeof obj);

        var arr = []
        console.log(typeof arr);

        console.log(Object.prototype.toString.call(arr));

        var date = new Date();
        console.log(typeof date);
        console.log(Object.prototype.toString.call(date));

        function Person() { };
        var p1 = new Person();
        console.log(typeof p1);
        console.log(Object.prototype.toString.call(p1));

        console.log(p1 instanceof Person);

        function Student() {
        }
        Student.prototype = new Person();
        var stu = new Student();
        console.log(stu instanceof Person);

    </script>
</body>

</html>